package com.yoosora.common.mode;

public class Operators extends ToString {

	private static final long serialVersionUID = -8271956894716079012L;

	protected String operatorId;
	protected String operator;
	protected String optSystem;

	public Operators() {
	}

	public String getOperatorId() {
		return this.operatorId;
	}

	public String getOperator() {
		return this.operator;
	}

	public String getOptSystem() {
		return this.optSystem;
	}

	public void setOperatorId(String operatorId) {
		this.operatorId = operatorId;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public void setOptSystem(String optSystem) {
		this.optSystem = optSystem;
	}

	@Override
	public String toString() {
		return "Operators(operatorId=" + this.getOperatorId() + ", operator=" + this.getOperator() + ", optSystem=" + this.getOptSystem() + ")";
	}

	@Override
	public boolean equals(Object o) {
		if (o == this) {
			return true;
		} else if (!(o instanceof Operators)) {
			return false;
		} else {
			Operators other = (Operators)o;
			if (!other.canEqual(this)) {
				return false;
			} else {
				label47: {
					Object this$operatorId = this.getOperatorId();
					Object other$operatorId = other.getOperatorId();
					if (this$operatorId == null) {
						if (other$operatorId == null) {
							break label47;
						}
					} else if (this$operatorId.equals(other$operatorId)) {
						break label47;
					}

					return false;
				}

				Object this$operator = this.getOperator();
				Object other$operator = other.getOperator();
				if (this$operator == null) {
					if (other$operator != null) {
						return false;
					}
				} else if (!this$operator.equals(other$operator)) {
					return false;
				}

				Object this$optSystem = this.getOptSystem();
				Object other$optSystem = other.getOptSystem();
				if (this$optSystem == null) {
					if (other$optSystem != null) {
						return false;
					}
				} else if (!this$optSystem.equals(other$optSystem)) {
					return false;
				}

				return true;
			}
		}
	}

	protected boolean canEqual(Object other) {
		return other instanceof Operators;
	}

	@Override
	public int hashCode() {
		int result = 1;
		Object $operatorId = this.getOperatorId();
		result = result * 59 + ($operatorId == null ? 43 : $operatorId.hashCode());
		Object $operator = this.getOperator();
		result = result * 59 + ($operator == null ? 43 : $operator.hashCode());
		Object $optSystem = this.getOptSystem();
		result = result * 59 + ($optSystem == null ? 43 : $optSystem.hashCode());
		return result;
	}
}
